﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MineName.aspx.cs" Inherits="UserControl_MineName" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>select</title>

<script type="text/javascript"> 
//


function gs1()
{
	
	//$("#mySelect option:selected").text();  
	var xtt=document.getElementById("listBox1").value; 
	
	
	var xobj = document.getElementById("listBox2");
	
if(xtt=='10000')
{
xobj.options.length = 0;
xobj.add(new Option("煤炭 ","煤炭"));
xobj.add(new Option("油页岩 ","油页岩"));
xobj.add(new Option("石油 ","石油"));
xobj.add(new Option("天然气 ","天然气"));
xobj.add(new Option("煤成气 ","煤成气"));
xobj.add(new Option("石煤 ","石煤"));
xobj.add(new Option("铀矿 ","铀矿"));
xobj.add(new Option("钍 ","钍"));
xobj.add(new Option("地下热水","地下热水"));

}
	
if(xtt=='20000')
{
xobj.options.length = 0;
xobj.add(new Option("铁矿 ","铁矿"));xobj.add(new Option("锰矿 ","锰矿"));xobj.add(new Option("铬矿 ","铬矿"));xobj.add(new Option("钛矿 ","钛矿"));xobj.add(new Option("钒矿","钒矿"));
}


if(xtt=='30000')
{
xobj.options.length = 0;
xobj.add(new Option("铜矿 ","铜矿"));xobj.add(new Option("铅矿 ","铅矿"));xobj.add(new Option("锌矿 ","锌矿"));xobj.add(new Option("铝矿 ","铝矿"));xobj.add(new Option("镁矿 ","镁矿"));xobj.add(new Option("镍矿 ","镍矿"));xobj.add(new Option("钴矿 ","钴矿"));xobj.add(new Option("钨矿 ","钨矿"));xobj.add(new Option("锡矿 ","锡矿"));xobj.add(new Option("铋矿 ","铋矿"));xobj.add(new Option("钼矿 ","钼矿"));xobj.add(new Option("汞矿 ","汞矿"));xobj.add(new Option("锑矿","锑矿"));
}


if(xtt=='40000')
{
xobj.options.length = 0;
xobj.add(new Option("铂族金属 ","铂族金属"));xobj.add(new Option("铂矿 ","铂矿"));xobj.add(new Option("钯矿 ","钯矿"));xobj.add(new Option("铱矿 ","铱矿"));xobj.add(new Option("铑矿 ","铑矿"));xobj.add(new Option("锇矿 ","锇矿"));xobj.add(new Option("钌矿 ","钌矿"));xobj.add(new Option("金矿 ","金矿"));xobj.add(new Option("银矿","银矿"));
}


if(xtt=='50000')
{
xobj.options.length = 0;
xobj.add(new Option("铌钽矿 ","铌钽矿"));xobj.add(new Option("铌矿 ","铌矿"));xobj.add(new Option("钽矿 ","钽矿"));xobj.add(new Option("铍矿 ","铍矿"));xobj.add(new Option("锂矿 ","锂矿"));xobj.add(new Option("锆矿 ","锆矿"));xobj.add(new Option("锶矿 ","锶矿"));xobj.add(new Option("铷矿 ","铷矿"));xobj.add(new Option("铯矿 ","铯矿"));xobj.add(new Option("重稀土矿 ","重稀土矿"));xobj.add(new Option("钇矿 ","钇矿"));xobj.add(new Option("钆矿 ","钆矿"));xobj.add(new Option("铽矿 ","铽矿"));xobj.add(new Option("镝矿 ","镝矿"));xobj.add(new Option("钬矿 ","钬矿"));xobj.add(new Option("铒矿 ","铒矿"));xobj.add(new Option("铥矿 ","铥矿"));xobj.add(new Option("镱矿 ","镱矿"));xobj.add(new Option("镥矿 ","镥矿"));xobj.add(new Option("稀土矿 ","稀土矿"));xobj.add(new Option("轻稀土矿 ","轻稀土矿"));xobj.add(new Option("铈矿 ","铈矿"));xobj.add(new Option("镧矿 ","镧矿"));xobj.add(new Option("镨矿 ","镨矿"));xobj.add(new Option("钕矿 ","钕矿"));xobj.add(new Option("钐矿 ","钐矿"));xobj.add(new Option("铕矿 ","铕矿"));xobj.add(new Option("锗矿 ","锗矿"));xobj.add(new Option("镓矿 ","镓矿"));xobj.add(new Option("铟矿 ","铟矿"));xobj.add(new Option("铊矿 ","铊矿"));xobj.add(new Option("铪矿 ","铪矿"));xobj.add(new Option("铼矿 ","铼矿"));xobj.add(new Option("镉矿 ","镉矿"));xobj.add(new Option("钪矿 ","钪矿"));xobj.add(new Option("硒矿 ","硒矿"));xobj.add(new Option("碲矿","碲矿"));
}


if(xtt=='60000')
{
xobj.options.length = 0;
xobj.add(new Option("蓝晶石 ","蓝晶石"));xobj.add(new Option("矽线石 ","矽线石"));xobj.add(new Option("红柱石 ","红柱石"));xobj.add(new Option("菱镁矿 ","菱镁矿"));xobj.add(new Option("普通萤石 ","普通萤石"));xobj.add(new Option("熔剂用灰岩 ","熔剂用灰岩"));xobj.add(new Option("冶金用白云岩 ","冶金用白云岩"));xobj.add(new Option("冶金用石英岩 ","冶金用石英岩"));xobj.add(new Option("冶金用砂岩 ","冶金用砂岩"));xobj.add(new Option("铸型用砂岩 ","铸型用砂岩"));xobj.add(new Option("铸型用砂 ","铸型用砂"));xobj.add(new Option("冶金用脉石英 ","冶金用脉石英"));xobj.add(new Option("耐火粘土 ","耐火粘土"));xobj.add(new Option("铁矾土 ","铁矾土"));xobj.add(new Option("铸型用粘土 ","铸型用粘土"));xobj.add(new Option("耐火用橄榄岩 ","耐火用橄榄岩"));xobj.add(new Option("熔剂用蛇纹岩","熔剂用蛇纹岩"));
}


if(xtt=='70000')
{
xobj.options.length = 0;
xobj.add(new Option("自然硫 ","自然硫"));xobj.add(new Option("硫铁矿 ","硫铁矿"));xobj.add(new Option("钠硝石 ","钠硝石"));xobj.add(new Option("明矾石 ","明矾石"));xobj.add(new Option("芒硝 ","芒硝"));xobj.add(new Option("重晶石 ","重晶石"));xobj.add(new Option("毒重石 ","毒重石"));xobj.add(new Option("天然碱 ","天然碱"));xobj.add(new Option("电石用灰岩 ","电石用灰岩"));xobj.add(new Option("制碱用灰岩 ","制碱用灰岩"));xobj.add(new Option("化肥用灰岩 ","化肥用灰岩"));xobj.add(new Option("化工用白云岩 ","化工用白云岩"));xobj.add(new Option("化肥用石英岩 ","化肥用石英岩"));xobj.add(new Option("化肥用砂岩 ","化肥用砂岩"));xobj.add(new Option("含钾岩石 ","含钾岩石"));xobj.add(new Option("含钾砂页岩 ","含钾砂页岩"));xobj.add(new Option("含钾粘土岩 ","含钾粘土岩"));xobj.add(new Option("化肥用橄榄岩 ","化肥用橄榄岩"));xobj.add(new Option("化肥用蛇纹岩 ","化肥用蛇纹岩"));xobj.add(new Option("泥炭 ","泥炭"));xobj.add(new Option("盐矿 ","盐矿"));xobj.add(new Option("镁盐 ","镁盐"));xobj.add(new Option("钾盐 ","钾盐"));xobj.add(new Option("碘矿 ","碘矿"));xobj.add(new Option("溴矿 ","溴矿"));xobj.add(new Option("砷矿 ","砷矿"));xobj.add(new Option("硼矿 ","硼矿"));xobj.add(new Option("磷矿","磷矿"));
}


if(xtt=='80000')
{
xobj.options.length = 0;
xobj.add(new Option("金刚石 ","金刚石"));xobj.add(new Option("石墨 ","石墨"));xobj.add(new Option("压电水晶 ","压电水晶"));xobj.add(new Option("熔炼水晶 ","熔炼水晶"));xobj.add(new Option("光学水晶 ","光学水晶"));xobj.add(new Option("工艺水晶 ","工艺水晶"));xobj.add(new Option("刚玉 ","刚玉"));xobj.add(new Option("硅灰石 ","硅灰石"));xobj.add(new Option("滑石 ","滑石"));xobj.add(new Option("石棉 ","石棉"));xobj.add(new Option("蓝石棉 ","蓝石棉"));xobj.add(new Option("云母 ","云母"));xobj.add(new Option("长石 ","长石"));xobj.add(new Option("电气石 ","电气石"));xobj.add(new Option("石榴子石 ","石榴子石"));xobj.add(new Option("黄玉 ","黄玉"));xobj.add(new Option("叶蜡石 ","叶蜡石"));xobj.add(new Option("透辉石 ","透辉石"));xobj.add(new Option("蛭石 ","蛭石"));xobj.add(new Option("沸石 ","沸石"));xobj.add(new Option("透闪石 ","透闪石"));xobj.add(new Option("石膏 ","石膏"));xobj.add(new Option("方解石 ","方解石"));xobj.add(new Option("冰洲石 ","冰洲石"));xobj.add(new Option("光学萤石 ","光学萤石"));xobj.add(new Option("宝石 ","宝石"));xobj.add(new Option("玉石 ","玉石"));xobj.add(new Option("玛瑙 ","玛瑙"));xobj.add(new Option("颜料矿物 ","颜料矿物"));xobj.add(new Option("玻璃用灰岩 ","玻璃用灰岩"));xobj.add(new Option("水泥用灰岩 ","水泥用灰岩"));xobj.add(new Option("建筑石料用灰岩 ","建筑石料用灰岩"));xobj.add(new Option("饰面用灰岩 ","饰面用灰岩"));xobj.add(new Option("制灰用石灰岩 ","制灰用石灰岩"));xobj.add(new Option("泥灰岩 ","泥灰岩"));xobj.add(new Option("白垩 ","白垩"));xobj.add(new Option("玻璃用白云岩 ","玻璃用白云岩"));xobj.add(new Option("建筑用白云岩 ","建筑用白云岩"));xobj.add(new Option("玻璃用石英岩 ","玻璃用石英岩"));xobj.add(new Option("玻璃用砂岩 ","玻璃用砂岩"));xobj.add(new Option("水泥配料用砂岩 ","水泥配料用砂岩"));xobj.add(new Option("砖瓦用砂岩 ","砖瓦用砂岩"));xobj.add(new Option("陶瓷用砂岩 ","陶瓷用砂岩"));xobj.add(new Option("玻璃用砂 ","玻璃用砂"));xobj.add(new Option("建筑用砂 ","建筑用砂"));xobj.add(new Option("水泥配料用砂 ","水泥配料用砂"));xobj.add(new Option("水泥标准砂 ","水泥标准砂"));xobj.add(new Option("砖瓦用砂 ","砖瓦用砂"));xobj.add(new Option("玻璃用脉石英 ","玻璃用脉石英"));xobj.add(new Option("水泥配料用脉石英 ","水泥配料用脉石英"));xobj.add(new Option("粉石英 ","粉石英"));xobj.add(new Option("天然油石 ","天然油石"));xobj.add(new Option("硅藻土 ","硅藻土"));xobj.add(new Option("陶粒页岩 ","陶粒页岩"));xobj.add(new Option("砖瓦用页岩 ","砖瓦用页岩"));xobj.add(new Option("水泥配料用页岩 ","水泥配料用页岩"));xobj.add(new Option("高岭土 ","高岭土"));xobj.add(new Option("陶瓷土 ","陶瓷土"));xobj.add(new Option("凹凸棒石粘土 ","凹凸棒石粘土"));xobj.add(new Option("海泡石粘土 ","海泡石粘土"));xobj.add(new Option("伊利石粘土 ","伊利石粘土"));xobj.add(new Option("累托石粘土 ","累托石粘土"));xobj.add(new Option("膨润土 ","膨润土"));xobj.add(new Option("其它粘土 ","其它粘土"));xobj.add(new Option("砖瓦用粘土 ","砖瓦用粘土"));xobj.add(new Option("陶粒用粘土 ","陶粒用粘土"));xobj.add(new Option("水泥配料用粘土 ","水泥配料用粘土"));xobj.add(new Option("水泥配料用红土 ","水泥配料用红土"));xobj.add(new Option("水泥配料用黄土 ","水泥配料用黄土"));xobj.add(new Option("水泥配料用泥岩 ","水泥配料用泥岩"));xobj.add(new Option("保温材料用粘土 ","保温材料用粘土"));xobj.add(new Option("建筑用橄榄岩 ","建筑用橄榄岩"));xobj.add(new Option("饰面用蛇纹岩 ","饰面用蛇纹岩"));xobj.add(new Option("饰面用辉石岩 ","饰面用辉石岩"));xobj.add(new Option("建筑用辉石岩 ","建筑用辉石岩"));xobj.add(new Option("玄武岩 ","玄武岩"));xobj.add(new Option("铸石用玄武岩 ","铸石用玄武岩"));xobj.add(new Option("岩棉用玄武岩 ","岩棉用玄武岩"));xobj.add(new Option("饰面用玄武岩 ","饰面用玄武岩"));xobj.add(new Option("水泥混合材玄武岩 ","水泥混合材玄武岩"));xobj.add(new Option("建筑用玄武岩 ","建筑用玄武岩"));xobj.add(new Option("饰面用角闪岩 ","饰面用角闪岩"));xobj.add(new Option("建筑用角闪岩 ","建筑用角闪岩"));xobj.add(new Option("辉绿岩 ","辉绿岩"));xobj.add(new Option("水泥用辉绿岩 ","水泥用辉绿岩"));xobj.add(new Option("铸石用辉绿岩 ","铸石用辉绿岩"));xobj.add(new Option("饰面用辉绿岩 ","饰面用辉绿岩"));xobj.add(new Option("建筑用辉绿岩 ","建筑用辉绿岩"));xobj.add(new Option("饰面用辉长岩 ","饰面用辉长岩"));xobj.add(new Option("建筑用辉长岩 ","建筑用辉长岩"));xobj.add(new Option("饰面用安山岩 ","饰面用安山岩"));xobj.add(new Option("建筑用安山岩 ","建筑用安山岩"));xobj.add(new Option("水泥混合材用安山玢岩 ","水泥混合材用安山玢岩"));xobj.add(new Option("耐酸碱用安山岩 ","耐酸碱用安山岩"));xobj.add(new Option("闪长岩 ","闪长岩"));xobj.add(new Option("建筑用闪长岩 ","建筑用闪长岩"));xobj.add(new Option("水泥混合材用闪长玢岩 ","水泥混合材用闪长玢岩"));xobj.add(new Option("饰面用闪长岩 ","饰面用闪长岩"));xobj.add(new Option("饰面用二长岩 ","饰面用二长岩"));xobj.add(new Option("建筑用二长岩 ","建筑用二长岩"));xobj.add(new Option("饰面用正长岩 ","饰面用正长岩"));xobj.add(new Option("建筑用正长岩 ","建筑用正长岩"));xobj.add(new Option("花岗岩 ","花岗岩"));xobj.add(new Option("建筑用花岗岩 ","建筑用花岗岩"));xobj.add(new Option("饰面用花岗岩 ","饰面用花岗岩"));xobj.add(new Option("麦饭石 ","麦饭石"));xobj.add(new Option("珍珠岩 ","珍珠岩"));xobj.add(new Option("黑耀岩 ","黑耀岩"));xobj.add(new Option("松脂岩 ","松脂岩"));xobj.add(new Option("浮石 ","浮石"));xobj.add(new Option("粗面岩 ","粗面岩"));xobj.add(new Option("水泥用粗面岩 ","水泥用粗面岩"));xobj.add(new Option("铸石用粗面岩 ","铸石用粗面岩"));xobj.add(new Option("霞石正长岩 ","霞石正长岩"));xobj.add(new Option("凝灰岩 ","凝灰岩"));xobj.add(new Option("玻璃用凝灰岩 ","玻璃用凝灰岩"));xobj.add(new Option("水泥用凝灰岩 ","水泥用凝灰岩"));xobj.add(new Option("建筑用凝灰岩 ","建筑用凝灰岩"));xobj.add(new Option("火山灰 ","火山灰"));xobj.add(new Option("火山渣 ","火山渣"));xobj.add(new Option("大理岩 ","大理岩"));xobj.add(new Option("饰面用大理岩 ","饰面用大理岩"));xobj.add(new Option("建筑用大理岩 ","建筑用大理岩"));xobj.add(new Option("水泥用大理岩 ","水泥用大理岩"));xobj.add(new Option("玻璃用大理岩 ","玻璃用大理岩"));xobj.add(new Option("板岩 ","板岩"));xobj.add(new Option("饰面用板岩 ","饰面用板岩"));xobj.add(new Option("水泥配料用板岩 ","水泥配料用板岩"));xobj.add(new Option("片麻岩 ","片麻岩"));xobj.add(new Option("天然沥青","天然沥青"));
}


if(xtt=='90000')
{
xobj.options.length = 0;
xobj.add(new Option("矿泉水 ","矿泉水"));xobj.add(new Option("地下水 ","地下水"));xobj.add(new Option("二氧化碳气 ","二氧化碳气"));xobj.add(new Option("硫化氢气 ","硫化氢气"));xobj.add(new Option("氦气 ","氦气"));xobj.add(new Option("氡气","氡气"));
}
	
	
	//alert(xtt);
}





function checkRepeat(oTargetId, text, isCheckRepeat){
    if(isCheckRepeat){
        var oTargetSel = document.getElementById(oTargetId);
        for(var i=0; i<oTargetSel.options.length; i++){
            if(oTargetSel.options[i].text == text) { return true; }
        }
    }
    return false;
}

function moveSelected(oSourceId,oTargetId,keepSource,isCheckRepeat){
	var oSourceSel = document.getElementById(oSourceId);
	var oTargetSel = document.getElementById(oTargetId);
    for(var i=0; i<oSourceSel.options.length; i++){
        if(oSourceSel[i].selected){
            var op = document.createElement("option"); 
            op.value = oSourceSel.options[i].value; 
			op.text = op.value;
			
            if(!checkRepeat(oTargetId, op.text, isCheckRepeat)){
                oTargetSel.options.add(op); 
            }
            if(!keepSource){
                oSourceSel.remove(i); 
                i--;
            }
        }
    }
}



function removeSelected(oSourceId)
{
    var oSelect = document.getElementById(oSourceId);
    for(var i=oSelect.options.length-1; i>=0; i--)
    {
        if(oSelect.options[i].selected)
        {
            oSelect.remove(i);
        }
    }
}


 function AutoPostBackWithList(){
        var listBoxResult = document.getElementById("listBoxResult");
        for(var i=0; i<listBoxResult.options.length; i++){
            listBoxResult.options[i].selected = true;
        }
   }













function ok()
{


        var oLink, pLink;
        pLink = "form1.MineType";
        if (pLink) {
            try {
                eval("oLink=dialogArguments.document." + pLink);
            } catch (e) { }
        }

//var oLink,pLink;
//pLink="form1.textfield5";
//if (pLink){
//try{
//	eval("oLink=dialogArguments.document."+pLink);
//}catch(e){}
//}



//

var xResult="";
var xobj=document.getElementById("listBoxResult");

for(var i=0;i<xobj.length;i++){
xResult=xResult+","+xobj.options[i].value;
}
xResult=xResult.substr(1,xResult.length);

oLink.value=xResult;



//AutoPostBackWithList();
//oLink.value=document.getElementById("listBoxResult").value;












	
//window.opener.document.add.PicPath.value="fsdfsd";

//window.opener.getElementById("PicPath").value="图片名称";

//window.opener.document.getElementById('picn').value = "ddddd"; 

//window.opener.document.add.picn.value="dsfs";

//window.opener.document.getElementById("picn").value="fsdfdsf";

window.close();
	
}






myBrowser = new Object();
function adjustDialog(){var w = tabDialogSize.offsetWidth + 6;var h = tabDialogSize.offsetHeight + 25;if(myBrowser.IsSP2){h += 20;}window.dialogWidth = w + "px";window.dialogHeight = h + "px";window.dialogLeft = (screen.availWidth - w) / 2;window.dialogTop = (screen.availHeight - h) / 2;}



//]]>
</script>
<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
img{ border:0px;}
-->
</style></head>

<body onLoad="adjustDialog()">
<form name="form1" method="post" action="XMQuery.aspx?values=" id="form1">

  <table align="center"  id="tabDialogSize">
        <tr><td height="514" valign="top">
                <select size="4" name="listBox1" onchange="javascript:gs1()" id="listBox1" onclick="AutoPostBackWithList()" style="height:422px;width:170px;">
	<option value="10000">能源矿</option>
	<option value="20000">黑色金属矿</option>
	<option value="30000">有色金属矿</option>
	<option value="40000">贵金属矿</option>
	<option value="50000">稀有稀土分散元素矿</option>
	<option value="60000">冶金辅助原料非金属矿</option>
	<option value="70000">化工原料非金属矿</option>
	<option value="80000">建材及其他非金属矿</option>
	<option value="90000">其他水气矿产</option>
 
</select>
            </td>
            <td valign="top">
                <select size="4" name="listBox2" multiple="multiple" id="listBox2" ondblclick="btnToRight.click();" style="height:422px;width:170px;">

</select><br/>
                <div style="color:gray">
                    说明：按住Shift或Ctrl键可以多选</div>
                <input type="button" name="button" id="button" value="确定" onClick="ok()"/>
            </td>
            <td>
            <a id="btnToRight" href="javascript:moveSelected('listBox2','listBoxResult',true,true);">
                <img src="../pic/right_a.jpg"  /></a><br/>
            <a href="javascript:removeSelected('listBoxResult');"><img src="../pic/left_a.jpg"  /></a>
            </td>
            <td valign="top">
                <select size="4" name="listBoxResult" multiple="multiple" id="listBoxResult" ondblclick="btnToLeft.click();" style="height:422px;width:170px;">
</select>
            </td>
         </tr>
   </table>
    </form>

</body>
</html>


